package com.randi.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author ziye
 */

@Getter
public enum MenuTypeEnum {

    /**
     * 目录
     */
    CATALOG("目录", 0),
    /**
     * 菜单
     */
    MENU("菜单", 1),
    /**
     * 按钮
     */
    BUTTON("按钮", 2);

    private final String label;

    @EnumValue
    private final Integer value;

    MenuTypeEnum(String label, Integer value) {
        this.label = label;
        this.value = value;
    }

    public String label() {
        return this.label;
    }

    public Integer value() {
        return this.value;
    }
}
